package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.OrderAgent;
import com.weixing.mall.provider.model.query.AgentOrderQuery;
import com.weixing.mall.provider.model.vo.OrderAgentVo;
import com.weixing.mall.provider.model.vo.agent.UpPayReceiveVo;
import com.weixing.mall.provider.model.vo.agent.UpPayStatisticVo;

import java.math.BigDecimal;

/**
 * <p>
 * 订单和 服务类
 * </p>
 *
 * @author Small
 * @since 2020-05-27
 */
public interface IOrderAgentService extends IService<OrderAgent> {

    UpPayReceiveVo countReceiveAndUpPay(Long agentId, String startTime, String endTime,Long selectedAgentId);

    void updateEnable(Long orderId);

    IPage<OrderAgentVo> selectListOfPage(IPage page, Long agentId);

    UpPayStatisticVo upPayStatistics(AgentOrderQuery query);

    BigDecimal todayProfit(Long agentId);

    BigDecimal totalProfit(Long agentId, String startTime, String endTime);

    OrderAgent findByOrderIdAndAgentId(Long id, Long agentId);
}
